package operate.node;

import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;

import java.util.concurrent.CountDownLatch;

/**
 * @author m0v1
 * @date 2021年09月07日 8:07 上午
 */
public abstract class AbstractNodeOperation implements Watcher {
    protected CountDownLatch countDownLatch;
    protected ZooKeeper zooKeeper;

    public void setCountDownLatch(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }

    public void setZooKeeper(ZooKeeper zooKeeper) {
        this.zooKeeper = zooKeeper;
    }
}
